Ext.ns('cn.hls.web.action.biz.car');
var carForm = cn.hls.web.action.biz.car.handCarForm;
 carForm = function() {
	var uploadPanel,win;
   return { 
      init : function() {
    	this.initRender();
      },
       
      initRender: function(){
    	  var productTime=$("#hid_productTime").val();//挂车出厂日期
      	  //渲染挂车出厂日期控件
          new Ext.form.DateField({
 				id : 'dtProductTime',
 				width : 170,
 				editable : true,
 				format : "Y-m-d",
 				name : 'productTime',
 				renderTo : 'sp_product_time',
 				allowBlank : true,
 				value:Ext.isEmpty(productTime)?null:new Date(productTime.substr(0,10))
 			});
          
      }
   }
}();
Ext.onReady(carForm.init, carForm);
 